package com.wd.mylibrary_my.viewmodel

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.wd.mylibrary_base.bean.ChangeNameBean
import com.wd.mylibrary_base.utils.HttpUtils
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers

/**
 * 作者: 邢凌志
 * 时间: 2024/9/25
 * 描述:
 */
class ChangeSignatureViewModel : ViewModel() {
    var changeSignatureData=MutableLiveData<ChangeNameBean>()

    fun getChangeSignatureData(userId:Int,sessionId:String,count:String){
        HttpUtils.httpUtils.apiService.getChangeSignature(userId, sessionId, count)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe {
                changeSignatureData.value=it
            }
    }
}